package com.banksystem.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.banksystem.entity.Member;
import com.banksystem.mapper.Membermapper;
import com.banksystem.service.Memberservice;

@Service
public class Memberserviceimpl implements Memberservice {

	@Autowired
	private Membermapper mapper;
	
	@Override
	public void addcya(String name, String sex, String classs, String phone, String gname, String position) {
		mapper.addcya(name, sex, classs, phone, gname, position);

	}

	@Override
	public List<Member> findmemberAll(String gname) {
		
		return mapper.findmemberAll(gname);
	}

	@Override
	public void deletemember(String mid) {
		mapper.deletemember(mid);
		
	}

	@Override
	public List<Member> findMemberAlllike(String seach, String gname) {
		
		return mapper.findMemberAlllike(seach, gname);
	}

}
